export const formatDate = (date: Date) => {
    const year = date.getFullYear()
    const month = date.getMonth()
    const day = date.getDate()
    const result = `${year}-${month}-${day}`
    return result
}